package com.jf.spring.bean;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-10-22
 * Time:21:30
 */
public class Cat {
    private String name;

    public Cat() {
        System.out.println("public Cat() called");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        System.out.println("setName called, name is " + name);
    }

    public void init() {
        System.out.println("init called");
    }

    public void destroy() {
        System.out.println("destroy called");
    }
}
